package com.seadragon.apps.doctorcard.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.seadragon.apps.doctorcard.model.Contact;
import com.seadragon.apps.doctorcard.model.DoctorCardResult;
import com.seadragon.apps.doctorcard.model.Friend;

public interface FriendService {
	Page<Friend> findAll(int offset, int pageSize);
	List<Contact> findByContact(Contact contact, int offset, int pageSize);
	List<Contact> findByContact(Contact contact);
	Friend findById(long id);
	Friend save(Friend friend);
	Friend findByTwoContacts(Contact sender, Contact recipient);
	boolean isFriendOf(Contact one, Contact theOther);
	DoctorCardResult remove(Contact contact, Contact contact2);
}
